package com.msw.rest.model;

import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.Test;

/**
 * Created by minshiwu on 2017/3/10.
 */
public class JsonUtil {

    ObjectMapper mapper = new ObjectMapper();

    @Test
    public void test() throws Exception{
        Domain domain = new Domain();
        domain.setDomainId("sssssssssss");
        domain.setDomainName("zouxulin");
        domain.setOwner(true);

        System.out.println(mapper.writeValueAsString(domain));

    }
}
